<?php/*
Pro Clan Manager is a website manager for multiplayer game teams. Pro Clan manager was designed and built by Andrew Fenn.
Copyright (C) 2002 Andrew Fenn

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/

	if (!empty($_POST['address']) && !empty($_POST['username']))
	{
		/* Whos in charge? */
		/* Lets find out */

		$sql = "SELECT u_email FROM ".MYSQL_PREFIX."_users WHERE"; // Finish this off tommrow


		if (mail($someone, "Someone from ". SITE_NAME ." wants to join you.", "Username: ".$_POST['username']."\r\n Email Address: ".$_POST['password'], "From: ".SITE_NAME."\r\nContent-Type: text/html"))
		{
			?>Your request was sent and you'll be contacted as soon as possible.<?PHP
		}
		else
		{
			?>There was a problem with your submission. If this keeps happening please contact us directly.<?PHP
		}
	}
	else
	{
	?>
	<center>
	If you wish to join us please fill out this form below.<BR>
	<form action="modules.php?m=<?PHP echo MOD_ID; ?>&page=index" method="post">
	Email <input type="text" name="address"> <BR> Desired Username <input type="text" name="username">
	<BR><input type="submit" value="send"></form></center>
	<?PHP
	}
?>